package com.study.annotation.demo;

import cn.hutool.core.util.DesensitizedUtil;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Sensitive2 {

    /** 加密类型 默认手机号 **/
    DesensitizedUtil.DesensitizedType desensitizedType() default DesensitizedUtil.DesensitizedType.MOBILE_PHONE;
}
